﻿<Window x:Class="UI.Windows.Wizards.NewProjectWizardWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:engine="clr-namespace:WPFLocalizeExtension.Engine;assembly=WPFLocalizeExtension" 
        xmlns:lex="clr-namespace:WPFLocalizeExtension.Extensions;assembly=WPFLocalizeExtension"
        xmlns:toolkit="clr-namespace:Xceed.Wpf.Toolkit;assembly=Xceed.Wpf.Toolkit"
        engine:LocalizeDictionary.DesignCulture="en"
        Title="{lex:Loc RAE:Strings:New_project_wizard}" Height="400" Width="500" Icon="/RAE;component/Resources/Icons/NewProject.ico" ShowInTaskbar="False">

    <toolkit:Wizard ExteriorPanelMinWidth="0" FinishButtonClosesWindow="True" HelpButtonVisibility="Collapsed" BackButtonContent="{lex:Loc RAE:Strings:Previous}" CancelButtonContent="{lex:Loc RAE:Strings:Cancel}" FinishButtonContent="{lex:Loc RAE:Strings:Finish}" NextButtonContent="{lex:Loc RAE:Strings:Next}" Finish="WizardFinish">
        <toolkit:WizardPage Title="{lex:Loc RAE:Strings:Project_information}" PageType="Interior">
            <Grid Margin="11">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="{lex:Loc RAE:Strings:Name}"/>
                <TextBox Grid.Column="1" Height="24" Margin="0 1" VerticalContentAlignment="Center" Text="{Binding Name}"/>
                <TextBlock Grid.Row="1" Text="{lex:Loc RAE:Strings:Description}"/>
                <TextBox Grid.Row="1" Grid.Column="1" Height="24" VerticalContentAlignment="Center" Margin="0 1" Text="{Binding Description}"/>
                <TextBlock Grid.Row="2" Text="{lex:Loc RAE:Strings:Path}"/>
                <DockPanel Height="24" Grid.Row="2" Grid.Column="1" Margin="0 1">
                    <Button DockPanel.Dock="Right" Content="..." Padding="15 0" Margin="5 0 0 0" Click="OpenSaveFileDialogButtonClick"/>
                    <TextBox VerticalContentAlignment="Center" Name="PathTextBox" Text="{Binding Path}"/>
                </DockPanel>
            </Grid>
        </toolkit:WizardPage>
		<toolkit:WizardPage PageType="Interior" Title="{lex:Loc RAE:Strings:Researches}" CanFinish="True"> 
            <DockPanel Margin="11">
                <Button Content="{lex:Loc RAE:Strings:Add}" MinWidth="50" HorizontalAlignment="Right" DockPanel.Dock="Bottom" Margin="0 5 0 0" Padding="5 2" Click="AddResearchButtonClick"/>
                <ListView ItemsSource="{Binding Researches}">
                    <ListView.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal" Margin="3">
                                <TextBlock Text="["/>
                                <TextBlock Text="{Binding Name}" Margin="1 0"/>
                                <TextBlock Text="]"/>
                                <TextBlock Text="{Binding Description}" Margin="5 0 0 0"/>
                                <TextBlock />
                            </StackPanel>
                        </DataTemplate>
                    </ListView.ItemTemplate>
                </ListView>
            </DockPanel>
		</toolkit:WizardPage>
		<toolkit:WizardPage PageType="Interior" Title="{lex:Loc RAE:Strings:Custom_information}" CanFinish="True">
			<DockPanel Margin="11 0 11 11">
				<DockPanel DockPanel.Dock="Top">
					<toolkit:WatermarkTextBox Name="TypeWatermarkTextBox" Watermark="{lex:Loc RAE:Strings:Type}" Width="120" DockPanel.Dock="Left" />
					<Button Content="{lex:Loc RAE:Strings:Add}" Width="Auto" DockPanel.Dock="Right" Padding="3 0" Click="AddCustomInformationButtonClick"/>
					<toolkit:WatermarkTextBox Name="ContentWatermarkTextBox" Watermark="{lex:Loc RAE:Strings:Content}" Margin="5 0 5 0"/>
				</DockPanel>
				<ListView ItemsSource="{Binding CustomInformation}" Margin="0 11 0 0">
					<ListView.ItemTemplate>
						<DataTemplate>
							<StackPanel Orientation="Horizontal" Margin="3">
								<TextBlock Text="["/>
								<TextBlock Text="{Binding Item1}" Margin="1 0"/>
								<TextBlock Text="]"/>
								<TextBlock Text="{Binding Item1}" Margin="5 0 0 0"/>
								<TextBlock />
							</StackPanel>
						</DataTemplate>
					</ListView.ItemTemplate>
				</ListView>
			</DockPanel>
		</toolkit:WizardPage>
	</toolkit:Wizard>
</Window>